package com.lg.business.controller;

//import com.lg.business.service.TextLoads;

import com.lg.common.utils.HttpContext;
import com.lg.redis.config.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.ServletContext;

@RestController
@RequestMapping(value = "/test")
public class testController {


    @Autowired
    RedisService redisService;


    @Value("${spring.datasource.username}")
    private String username;

    @Value("${spring.datasource.password}")
    private String password;


    @RequestMapping(value = "/query", method = RequestMethod.GET)
    public String test() {
        HttpContext httpContext = HttpContext.get();
        System.out.println(username);
        System.out.println(password);
        return "lgdyz";
    }


}
